package ex;

import java.util.Scanner;

/**
 * @author 小李要吃鱼
 * @date 2021-01-17 13:22
 */
public class Ex1 {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        Double base = sc.nextDouble();
        int year = sc.nextInt();
        System.out.println("请输入年限:");
        if(year == 1) {
            base = 0.5;
        }else if(year >= 3){
            base = 0.7;
        }else if(year > 5) {
            base = 0.77;
        System.out.println("准确的利率:+ base");
        }double mon = base * year * 10000;
        System.out.println(mon);

        }






    }




